package com.hao.tool.web.module.fileInfo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * description
 *
 * @author RuiHaoZ on GZ.cmhk
 * @date 2019-11-22 23:38
 */
@Controller
@RequestMapping("/templates")
public class TemplateController {

    @GetMapping("")
    public ModelAndView to404() {
        ModelAndView mv = new ModelAndView("common/404");
        return mv;
    }

    @GetMapping("/add")
    public ModelAndView add() {
        ModelAndView mv = new ModelAndView("template/add");
        return mv;
    }
}
